﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ATM.Entities;
using ATM.DAO;

namespace ATM.BUS
{
    public class CheckBalaceBUS
    {
        public static double GetBalance(string card)
        {
            Card _card = CardDAO.GetCurrentCard(card);
            Account acc = AccountDAO.GetCurrentAccount(_card);
            return acc.Balance;
        }
        public static Card GetCard(string s)
        {
            Card card = CardDAO.GetCurrentCard(s);
            return card;
        }
    }
}
